home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
gfx
/
3d
/
FixObj12.lha
/
FixObj.doc
< prev
next >
Wrap
Text File
|
1993-03-20
|
2KB
|
55 lines
FixObj 1.2 : Fixes Pixel3DPro generated Wavefront files
This program was made because I'm using Wavefront at school, and
Imagine at home. I've gotten a few objects converted back and forth
by a friend on IRC, and when going to Wavefront, they have this knack
of crashing it spectacularly. Makes ya wonder if they ever really
tested their Wavefront saver. :) Anyway, doing a hex dump, I noticed that
P3dPro files have a carriage return character $0d, and Wavefront Model
apparently chokes on it.
Another problem the files have is that Wavefront draws the objects
inside out. This doesn't matter for symmetrically swept objects, but
many non-symmetrical objects (such as the keyboard I've been desperately
trying to get converted), this is unacceptable. The cause of the problem
is Imagine having Y coords grow bigger, the further they get away from
you, whereas the Wavefront Z (same as Y in Imagine) coords grow smaller
as they move away.
IMAGINE (and Pixel 3D Pro, apparently) Wavefront
Y Z
/|\ + numbers /|\ - numbers
| |
+---> X +--->X
| |
\|/ - numbers \|/ + numbers
Notes:
------
USAGE: FixObj <wavefront file>
The output file is saved on top of the original
Right now, the program requires just enough memory to have the file
in memory twice. Since I made it out of personal need and I have plenty
of memory, that's ok for me. It's kinda necessary to have it like that
because of the way I programmed the backtracking it needs to do to find
the Z signs. There may be a better way, but I'm still learning E right now.
Bug Fixes:
----------
20-Mar-93
I finally figured out why the objects are reversed, after a few days of
almost tearing my hair out.
16-Mar-93
Ok, like a damn-fool-idiot, I posted a version that I had in my C: just
before I got it working completely right. So, the original FixObj doesn't
work! (I'm noticing this a couple weeks after I originally uploaded it- the
next time I needed it.) So, here's the fixed, (should-be) working version,
and I added a few lines to check and make sure you haven't already run
FixObj on the object.
Dan "Danimal" on IRC
djm2@ra.msstate.edu